/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jzoomer;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JFrame;

/**
 *
 * @author COMPUTER
 */
public class frame extends JFrame implements KeyListener, MouseListener, MouseMotionListener{
    boolean changeposition = true;
    public frame(){
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setUndecorated(true);
        Toolkit kit = Toolkit.getDefaultToolkit();
        Dimension d = kit.getScreenSize();     
        setSize(d);
//        setSize(110, 110);
        setBackground(Color.BLACK);
        panel p = new panel(this);
        setContentPane(p);
        addKeyListener(this);
        addMouseMotionListener(this);
        addMouseListener(this);

    }
    @Override
    public void keyTyped(KeyEvent e) {
        
    }

    @Override
    public void keyPressed(KeyEvent e) {
        if(e.getKeyCode() == KeyEvent.VK_ESCAPE)
            System.exit(0);
    }

    @Override
    public void keyReleased(KeyEvent e) {
        
    }
    public void relocate(int x, int y){
        setLocation(x, y);
    }

    @Override
    public void mouseClicked(MouseEvent e) {

    }

    @Override
    public void mousePressed(MouseEvent e) {        
    }

    @Override
    public void mouseReleased(MouseEvent e) {

    }

    @Override
    public void mouseEntered(MouseEvent e) {

    }

    @Override
    public void mouseExited(MouseEvent e) {

    }

    @Override
    public void mouseDragged(MouseEvent e) {     
        
        
    }

    @Override
    public void mouseMoved(MouseEvent e) {
    }
}

